package com.ruoyi.zhhq.mapper;

import java.util.List;
import com.ruoyi.zhhq.domain.Building;
import com.ruoyi.zhhq.domain.Room;

/**
 * 楼Mapper接口
 * 
 * @author zsl
 * @date 2022-10-30
 */
public interface BuildingMapper 
{
    /**
     * 查询楼
     * 
     * @param buildingId 楼主键
     * @return 楼
     */
    public Building selectBuildingByBuildingId(String buildingId);
    /**
     * 查询房间信息列表
     * 
     * @param Room 系部信息
     * @return 房间信息集合
     */
    
    public Building selectBuildingByBuildingName(String buildingName);


    /**
     * 查询楼列表
     * 
     * @param building 楼
     * @return 楼集合
     */
    
    public List<Building> selectBuildingList(Building building);
    
    /**
     * 查询楼列表
     * 
     * @param building 楼
     * @return 楼集合
     */
    
    public List<Building> selectBuildingListAll();
    
    /**
     * 新增楼
     * 
     * @param building 楼
     * @return 结果
     */
    public int insertBuilding(Building building);

    /**
     * 修改楼
     * 
     * @param building 楼
     * @return 结果
     */
    public int updateBuilding(Building building);

    /**
     * 删除楼
     * 
     * @param buildingId 楼主键
     * @return 结果
     */
    public int deleteBuildingByBuildingId(String buildingId);

    /**
     * 批量删除楼
     * 
     * @param buildingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuildingByBuildingIds(String[] buildingIds);
}
